import os

# 路径相关
BASE_DIR = os.path.dirname(
    os.path.dirname(os.path.abspath(__file__)))
COMMON_CONF_DIR = os.path.dirname(os.path.abspath(__file__))
SECRET_CONF_FILE = os.path.join(COMMON_CONF_DIR, 'secret.ini')
LOGGING_CONFIG_FILE = os.path.join(COMMON_CONF_DIR, 'logging.conf')
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

# WEB相关
ALLOWED_HOSTS = '*'


# 安全/调试相关
# DEBUG严禁在测试、预上线、线上环境设置为True
DEBUG = False

# 业务相关
JWT_EXPIRATION_DAYS = 1


# 系统配置
SYSTEM_CONFIG = dict()
# 字典配置
DICTIONARY_CONFIG = dict()

# 操作日志配置
API_LOG_ENABLE = False
API_LOG_METHODS = ['POST', 'UPDATE', 'DELETE', 'PUT', 'GET']
API_MODEL_MAP = {
    '/token/': '登录模块',
    '/api/login/': '登录模块',
}
